package com.example.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.sys.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.sys.vo.RoleVo;

import java.util.List;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author anan
 * @since 2019-06-17
 */
public interface RoleService extends IService<Role> {
    List<Role> findRoleByLoginName(String loginName);
    List<Role> findRoleByUserId(Long userId);

    IPage<Role> selectPage(RoleVo roleVo);

    List<RoleMenu> getMenuList(Long roleId);

    List<UserRole> getUserList(Long roleId);

    List<RoleDept> getDeptList(Long roleId);
}
